home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / C / Mesa / samples / Makefile < prev    next >
Encoding:
Makefile  |  1997-06-25  |  1.4 KB  |  73 lines

  1. # Makefile for sample programs
  2.  
  3. # $Id: Makefile,v 1.5 1995/08/01 20:59:49 brianp Exp $
  4.  
  5. # $Log: Makefile,v $
  6. # Revision 1.5  1995/08/01  20:59:49  brianp
  7. # use $(TK_LIB) and $(AUX_LIB), added nurb demo
  8. #
  9. # Revision 1.4  1995/05/01  15:25:51  brianp
  10. # clean up and reorganize
  11. #
  12. # Revision 1.3  1995/03/30  22:30:56  brianp
  13. # added new demos to PROGS
  14. #
  15. # Revision 1.2  1995/03/04  19:43:47  brianp
  16. # updated for Make-config
  17. #
  18. # Revision 1.1  1995/03/03  14:35:18  brianp
  19. # Initial revision
  20. #
  21.  
  22.  
  23. ##### MACROS #####
  24.  
  25. INCDIR = ../include
  26.  
  27. GL_LIBS = -L../lib -lMesatk -lMesaGLU -lMesaGL -lm $(XLIBS)
  28.  
  29. LIB_DEP = ../lib/$(GL_LIB) ../lib/$(GLU_LIB) ../lib/$(TK_LIB) ../lib/$(AUX_LIB)
  30.  
  31. ifdef AMIGA
  32. PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth \
  33.     eval fog font line logo nurb \
  34.     overlay point prim quad select shape \
  35.     speed sphere star stencil stretch texture \
  36.     tri wave
  37. else
  38. PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth \
  39.     eval fog font line logo nurb oglinfo olympic \
  40.     overlay point prim quad select shape \
  41.     speed sphere star stencil stretch texture \
  42.     tri wave
  43. endif
  44.  
  45.  
  46. ##### RULES #####
  47.  
  48. .SUFFIXES:
  49. .SUFFIXES: .c
  50.  
  51. .c: $(LIB_DEP)
  52.     $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
  53.  
  54.  
  55.  
  56. ##### TARGETS #####
  57.  
  58. default:
  59.     @echo "Specify a target configuration"
  60.  
  61. clean:
  62.     -rm *.o *~
  63.  
  64. realclean:
  65.     -rm $(PROGS)
  66.     -rm *.o *~
  67.  
  68. targets: $(PROGS)
  69.  
  70. include ../Make-config
  71.  
  72.  
  73.